let str: string = '你好呀';
let num: number = 123;
let bool: boolean = true;
let n:any = [1,2,3];
let un:undefined = undefined;
let nu: null = null;

//数组的每一个成员都是number类型
let arr1: number[] = [1,2,3,4];
let arr2: (string|number|boolean)[] = ['a','b','c',100,true];
let arr3: Array<number>= [1,2,3,4];
let arr4:[string,string,number] = ['a','b',10];

function fun(a:number ,b:number ):void{
    let c = a+b;
}
fun(1,2);


function fun2(o: object): void{

}
fun2({ a: 1 })


let obj = { 
    message:'成功',
    data:{
        list:['a','b','c']
    },
    success:true
 }; 

